package com.icez.designmode

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.icez.frequencyplaying.FrequencyPlayingView

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val test = findViewById<FrequencyPlayingView>(R.id.test)
        val start = findViewById<Button>(R.id.start)
        val stop = findViewById<Button>(R.id.stop)

        start.setOnClickListener {
            test.start()
        }
        stop.setOnClickListener {
            test.stop()
        }
    }
}